using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Dicetab : MonoBehaviour {
	
	public int dieFace = 20;

	// Use this for initialization
	void Start () {
		UIButtonMessage message = gameObject.AddComponent<UIButtonMessage>();
		message.target = gameObject;
		message.functionName = "RollDie";
	}
	
	// Update is called once per frame
	void Update () {
		
	}
	
	void RollDie()
	{
		StartCoroutine(HelperFunctions.RollWindow(new List<RollDefinition>{new RollDefinition(1,dieFace,"",0)}, "d"+dieFace));
	}
}
